<template>
  <div>
    <mt-swipe :auto="4000" @change="handleChange">
      <mt-swipe-item v-for="(item, index) in bannr" :key="index">
        <img class="swiper-img" :src="item" alt="轮播图" />
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>

<script>
export default {
  name: 'Swper',
  data() {
    return {
      bannr: [
        require('@/assets/images/banner@2x_1.png'),
        require('@/assets/images/banner@2x_2.png'),
        require('@/assets/images/banner@2x_3.png')
      ]
    }
  },
  methods: {
    handleChange(index) {
      console.log(this.bannr[0])
    }
  }
}
</script>

<style lang="scss" scoped>
#swper {
  width: 6.9rem;
  display: flex;
  justify-content: space-between;
  height: 10rem;
  align-items: center;
  margin: auto;
  padding: 0.1rem 0.3rem;
}
.mint-swipe,
.mint-swipe-items-wrap,
.mint-swipe-item {
  width: 100%;
  height: 10rem;
}
.mint-swipe-item {
  width: 100%;
  height: 10rem;
  background: #ccc;
}
.swiper-img {
  width: 100%;
  height: 100%;
}
</style>
